﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeBackup.FrmGrid
{
    public class GridColumn
    {
        public GridColumn()
        {

            RowType = "DataGridViewTextBox";
            Visible = true;
            Readonly = true;
        }
        /// <summary>
        /// 列名稱
        /// </summary>
        public string? HeaderText { get; init; }
        /// <summary>
        /// 列寬度
        /// </summary>
        public int Width { get; init; }
        /// <summary>
        /// 是否可見
        /// </summary>
        public bool Visible { get; init; }
        /// <summary>
        /// 對應數據集的列
        /// </summary>
        public string? DataPropertyName { get; init; }

        public string? RowType { get; init; }


        public bool Frozen { get; init; }
        public bool Readonly { get; init; }
    }
}
